﻿using System;

namespace Vbyte.SharpOrm.Config
{
    /// <summary>
    /// 默认值
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public class DefaultAttribute : Attribute
    {
        /// <summary>
        /// 默认值的值设置
        /// </summary>
        /// <value>值</value>
        public object Value { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultAttribute"/> class.
        /// </summary>
        /// <param name="val">The val.</param>
        public DefaultAttribute(object val)
        {
            Value = val;
        }
    }
}